<template>
  <div class="medical">
    <!-- 悬浮预详细界面 -->
    <div class="suspend-1" v-if="bbb == 1">
      <div class="sus">
        <div class="y1">
          <p>
            预约医生：
            <i
              @click="bbb = 2"
              class="el-icon-circle-close"
              style="font-size: 30px"
            ></i>
          </p>
        </div>
        <!-- 侧跳转栏 -->
        <div class="y2">
          <div>
            <p>预约分类</p>
          </div>
          <ul>
            <li @click="aaa = 1">预约医生</li>
            <li @click="aaa = 2">预约美容师</li>
            <li><router-link to="">返回我的预约记录</router-link></li>
          </ul>
        </div>
        <!-- 预约医生 -->
        <div v-if="aaa == 1" class="y3">
          <p>预约医生</p>
          <!-- 预约医师： -->
          <div>
            <template
              >预约医师：
              <el-select v-model="doctor" placeholder="选择预约医生">
                <el-option
                  v-for="item in Doctor"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </template>
          </div>
          <!-- 宠物名称 -->
          <div>
            <template>
              宠物名称：
              <el-select
                v-model="petname"
                filterable
                placeholder="选择您的宠物"
              >
                <el-option
                  v-for="item in Petname"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </template>
          </div>
          <!-- 预约时间： -->
          <div>
            <template
              >预约时间：
              <el-select v-model="time" placeholder="选择您预约的时间">
                <el-option
                  v-for="item in Time"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </template>
          </div>
          <!-- 预约描述 -->
          <div class="d1">
            预约描述：
            <el-input
              type="textarea"
              :rows="6"
              placeholder="请输入您宠物的病况"
              v-model="textarea"
            >
            </el-input>
          </div>
          <div style="text-align: center">
            <button>立即预约</button>
          </div>
        </div>
        <!-- 预约美容师 -->
        <div v-if="aaa == 2" class="y4">
          <p>预约美容师</p>
          <!-- 预约美容师： -->
          <div>
            <template
              >预约美容师：
              <el-select v-model="beautician" placeholder="选择预约美容师">
                <el-option
                  v-for="item in Beautician"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </template>
          </div>
          <!-- 宠物名称 -->
          <div>
            <template>
              宠物名称：
              <el-select
                v-model="petname"
                filterable
                placeholder="选择您的宠物"
              >
                <el-option
                  v-for="item in Petname"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </template>
          </div>
          <!-- 美容选项： -->
          <div>
            <template>
              美容项目：
              <el-select
                v-model="beauty"
                filterable
                placeholder="选择您所需的护理项"
              >
                <el-option
                  v-for="item in Beauty"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </template>
          </div>
          <!-- 预约时间： -->
          <div>
            <template
              >预约时间：
              <el-select v-model="time" placeholder="选择您预约的时间">
                <el-option
                  v-for="item in Time"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </template>
          </div>
          <!-- 提交按键 -->
          <div style="text-align: center">
            <button>立即预约</button>
          </div>
        </div>
      </div>
    </div>
    <ind-header />
    <div class="medical-0">
      <!-- 大图部分 -->
      <div class="picture">
        <img src="../assets/image/大图.jpg" alt="" />
      </div>

      <!-- 一段内容 -->
      <div class="Medical-1">
        <div>
          <p>诊疗团队</p>
          <button>详情</button>
        </div>
        <ul>
          <li><img src="" alt="" /></li>
          <li><img class="d1" src="" alt="" /></li>
          <li><img src="" alt="" /></li>
        </ul>
      </div>
      <!-- 悬浮  预约医生-->
      <div class="suspend" @click="bbb = 1">
        <span href=""
          >
          <img width="100%" height="100%" src="/consult2.jpg" alt="" />
        </span>
      </div>
      <!-- 二段内容 -->
      <div class="Medical-2">
        <div>
          <p>美容养护</p>
          <button>详情</button>
        </div>
        <ul>
          <li><img src="" alt="" /></li>
          <li><img src="" alt="" /></li>
        </ul>
      </div>
      <!-- 三段内容 -->
      <div class="Medical-3">
        <div>
          <p>宠物用品</p>
          <button>详情</button>
        </div>
        <ul>
          <li><img src="" alt="" /></li>
          <li><img src="" alt="" /></li>
          <li><img src="" alt="" /></li>
          <li><img src="" alt="" /></li>
        </ul>
      </div>
    </div>
    <ind-footer />
  </div>
</template>

<script>
import IndHeader from "@/components/IndHeader.vue";
import IndFooter from "@/components/IndFooter.vue";
export default {
  components: { IndHeader, IndFooter },
  methods: {},
  data() {
    return {
      aaa: 1,
      bbb: 2,
      // 医生
      Petname: [
        {
          value: "金毛",
        },
        {
          value: "哈士奇",
        },
        {
          value: "德牧",
        },
        {
          value: "猫",
        },
        {
          value: "猫猫",
        },
      ],
      petname: "",
      doctor: "",
      time: "",
      textarea: "",
      beauty: "",
      beautician: "",
      Doctor: [
        {
          value: "大鹏",
        },
        {
          value: "吴老师",
        },
        {
          value: "大花",
        },
        {
          value: "二花",
        },
        {
          value: "王五",
        },
      ],
      Beautician: [
        {
          value: "大鹏",
        },
        {
          value: "吴老师",
        },
        {
          value: "大花",
        },
        {
          value: "二花",
        },
        {
          value: "王五",
        },
      ],
      // 名称
      Doctor: [
        {
          value: "大鹏",
        },
        {
          value: "吴老师",
        },
        {
          value: "大花",
        },
        {
          value: "二花",
        },
        {
          value: "王五",
        },
      ],
      // 时间
      Time: [
        {
          value: "9:30~10:30",
        },
        {
          value: "11:00~12:00",
        },
        {
          value: "13:30~14:30",
        },
        {
          value: "15:00~16:00",
        },
        {
          value: "16:30~17:30",
        },
      ],
      Beauty: [
        {
          value: "毛发护理类",
        },
        {
          value: "头部护理类",
        },
        {
          value: "口腔护理类",
        },
        {
          value: "将康护理类",
        },
        {
          value: "头部护理",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.suspend-1 {
  width: 100%;
  height: 100%;
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10;
  // display: none;

  .sus {
    width: 1000px;
    height: 600px;
    background: rgba(228, 228, 228);
    position: relative;
    top: calc(50% - 300px);
    left: calc(50% - 500px);

    .y1 {
      height: 40px;
      background-color: white;
      margin: 20px;

      p {
        display: block;
        height: 40px;
        line-height: 40px;
        left: 20px;
        margin-left: 10px;
      }
      i {
        line-height: 40px;
        float: right;
        width: 30px;
        height: 30px;
      }
    }

    .y2 {
      width: 350px;
      height: 230px;
      background-color: white;
      margin-left: 20px;
      border-radius: 5px;
      float: left;
      user-select: none;
      cursor: pointer;

      div {
        background-color: rgb(247, 247, 247);
        height: 60px;

        p {
          margin: 0 15px;
          font-size: 25px;
          height: 60px;
          line-height: 60px;
          border: 1px solid rgb(240, 240, 240);
        }
      }

      ul {
        margin-left: 20px;
        color: rgb(64, 158, 255);

        li {
          font-size: 20px;
          margin: 15px;
        }
      }
    }

    .y3 {
      float: right;
      background-color: white;
      width: 600px;
      height: 450px;
      margin: 0 15px;

      p {
        font-size: 35px;
        text-align: center;
      }
      div {
        margin: 5px;
      }
      .d1 {
        margin-right: 20px;
      }
    }
    button {
      margin: 0 auto;
      color: white;
      background-color: rgb(64, 158, 255);
      width: 100px;
      height: 40px;
      border: none;
      border-radius: 5px;
    }
    .y4 {
      float: right;
      background-color: white;
      width: 600px;
      height: 400px;
      margin: 0 15px;

      p {
        font-size: 35px;
        text-align: center;
      }
      div {
        margin: 5px;
      }
      .d1 {
        margin-right: 20px;
      }

      button:hover {
        background-color: rgb(110, 180, 250);
      }
      button:active {
        background-color: rgb(59, 131, 203);
      }
    }
  }
}

.medical-0 {
  margin: auto;
  width: 1440px;

  .picture > img {
    display: block;
    width: 100%;
    height: 600px;
  }

  .suspend {
    user-select: none;
    cursor: pointer;
    width: 160px;
    height: 120px;
    position: fixed;
    right: 20px;
    bottom: 250px;
    z-index: 1;
  }

  p {
    margin: 20px 80px;
    font-size: 48px;
    float: left;
  }

  ul {
    display: inline-flex;
    margin: auto;
  }

  button {
    float: right;
    width: 100px;
    height: 30px;
    color: white;
    background-color: rgb(173, 110, 63);
    border: none;
    border-radius: 5px;
    margin: 30px 20px;
  }

  button:hover {
    background-color: rgb(241, 201, 201);
    color: rgb(223, 160, 23);
  }

  div {
    width: 100%;
    display: inline-block;
  }
}

.Medical-1 {
  width: 100%;
  height: 450px;
  background-color: rgb(250, 248, 228);

  p {
    text-shadow: 1px 2px 1px rgb(173, 110, 63);
    color: rgb(16, 16, 16);
  }

  img {
    width: 280px;
    height: 280px;
    margin: 30px 35px;
  }

  .d1 {
    width: 670px;
  }
}

.Medical-2 {
  width: 100%;
  height: 450px;
  background-color: rgb(173, 110, 63);
  z-index: 1;

  p {
    text-shadow: 1px 1px 1px rgb(138, 138, 134);
    color: rgb(16, 16, 16);
  }

  button {
    background-color: rgb(208, 173, 130);
  }

  img {
    width: 550px;
    height: 280px;
    margin: 20px 85px;
  }
}

.Medical-3 {
  width: 100%;
  height: 400px;
  background-color: rgb(250, 248, 228);

  img {
    width: 250px;
    height: 250px;
    margin: 20px 55px;
  }

  p {
    color: rgb(173, 110, 63);
  }
}
</style>
